package com.mycom.core2;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * tcp客户端启动类
 * @author xp
 *         Created on 2018/2/26
 */
public class AppInit {
    public static Properties config = new Properties();

    public static void main(String[] args) throws IOException, InterruptedException {
        InputStream in = new BufferedInputStream(new FileInputStream("conf/conf.properties"));
        config.load(in);

        new ConfigInit().start();
        new TcpClient().start();
    }

}
